import { Injectable } from '@nestjs/common';
import { UserWalletModelService } from 'src/model/user-wallet-model/user-wallet-model.service';

@Injectable()
export class UserWalletService {
    constructor(
        private userWalletModelService:UserWalletModelService
    ) {}
    
    async wallet(userId:number) {
        return this.userWalletModelService.findOne({ userId }, ['amount', 'rewardAmount'])
    }
}
